<?php
	// read Session (needed for MGI Service and to show Routes)
	session_start();

	// get the configuration
	include_once("conf.php");

	// get the example/source code file
	$srcFile = dirname(__FILE__) . "/examples/Map24MGI_getbufferedimage.php5";

	$sid = $CONF['SESSION_ID'];
	// execute the file
	include_once($srcFile);

	if(isset($IMG)) {
		// we want to create an image
		header("Content-type: image/gif");
		print ($IMG);
	}
	else {
		// for debugging, we let us show the rest
		print ("Sorry, no BitMapData found.");
	}

	// destroy session
	session_destroy();
?>
